package com.jd.system.listener;

import com.jd.system.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

// 项目一启动，ServeerContext会创建    ServletContextListener起作用 - 自动去执行上下文对象的创建
@WebListener
public class PermissionScanlnitListener implements ServletContextListener {

    @Autowired
    private PermissionService permissionService;

    /*@Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("扫描权限注解开始。。。");
        //permissionService.scanPermission();
        System.out.println("扫描注解权限结束。。。");
    }*/
}
